$def with (page)

$ _x = ctx.setdefault('cssfile', 'edit')

$var title: $_('Editing %(name)s', name=page.displayname)

<div id="contentHead">
    <h1>
        <span class="tools">$_("Currently Editing:")</span>
        $page.displayname
    </h1>
</div>

<div id="contentBody">

    <form method="POST" class="olform">
        <input type="hidden" name="type.key" id="type.key" value="/type/user"/>

        <div class="formElement title">
            <div class="label">
                <label for="title">$_("Display Name")</label>
            </div>
            <div class="input">
                <input type="text" name="displayname" id="title" value="$page.displayname"/>
            </div>
        </div>

        $:macros.TypeChanger(page.type)

        <div class="clearfix"></div>

        $:macros.UserEditRow(page, 'website', False)

        <div class="formElement">
            <div class="label"><label for="description">$_("Description")</label></div>
            <div class="input">
                <textarea name="description" class="markdown" rows="6" cols="40">$page.description</textarea>
            </div>
        </div>

        <div class="clearfix"></div>

        $:macros.EditButtons(comment=page.comment_)
    </form>
</div>
